#ifndef __HIERARCHICAL_KMEANS_H__
#define __HIERARCHICAL_KMEANS_H__

#include <opencv2/opencv.hpp>
//#include "headers.h"
using namespace cv;
using namespace std;

class hierarchical_kmeans
{
public:
	hierarchical_kmeans(int _depth,int _branch);
	~hierarchical_kmeans();
	void add(cv::Mat dat);
	int cluster(std::vector<cv::Mat> &centers);
	

private:
	void clear();
	vector<cv::Mat> data;
	int depth;
	int branch;
};


#endif